\section{Example of execution}
In this section we show an example of execution of our application, listing the steps of a normal client utilization. The example shown below 
displays an attempt from an \texttt{Android }client to contact the server and make an ordination, the first order contains an error on some 
items quantity and the second trial will be successful.

On startup the terminal shows a screen as on \ref{fig:startup}, clicking on \texttt{menu} button a \texttt{Connect} command appears on the bottom 
of the screen as showed on \ref{fig:connect}.

\begin{center}
\begin{figure}[h]
 \centering
 \includegraphics[width=0.3\textwidth]{img/scr1.png}
 % scr1.png: 0x0 pixel, 0dpi, 0.00x0.00 cm, bb=
 \caption{Startup screen}
 \label{fig:startup}
\end{figure}\end{center}
\begin{figure}[h]
 \centering
 \includegraphics[width=0.3\textwidth]{img/scr2.png}
 % scr2.png: 0x0 pixel, -2147483648dpi, 0.00x0.00 cm, bb=
 \caption{Connect button}
 \label{fig:connect}
\end{figure}
Pushing \texttt{Connect} will start a connection with server, if anything goes wrong server will send automatically the men\`u to the \and\ terminal an it will compare on the screen as showed on figure \ref{fig:menu}.\\
\begin{figure}[h]
 \centering
 \includegraphics[width=0.3\textwidth]{img/scr3.png}
 % scr3.png: 0x0 pixel, 0dpi, 0.00x0.00 cm, bb=
 \caption{Menu view}
 \label{fig:menu}
\end{figure}
Clicking for a brief period on an item will compare a new button set indicating the possibility to increase or decrease the quantity of selected item on the final order as showed on figure \ref{fig:additem}, in this way we could set the ordination. Alternatively you could click on \texttt{Item Description} where you can read a more detailed item description or go back.\\
\begin{figure}[h]
 \centering
 \includegraphics[width=0.3\textwidth]{img/scr4.png}
 % scr4.png: 0x0 pixel, 0dpi, 0.00x0.00 cm, bb=
 \caption{Modify quantity of an item on the final order}
 \label{fig:additem}
\end{figure}
When your ordination is complete you could send it clicking on \texttt{menu} button and on \texttt{Send Order} as on figure \ref{fig:send}
\begin{figure}[h]
 \centering
 \includegraphics[width=0.3\textwidth]{img/scr5.png}
 % scr5.png: 0x0 pixel, 0dpi, 0.00x0.00 cm, bb=
 \caption{Sending order}
 \label{fig:send}
\end{figure}
If your ordination contains some error it will be not accepted, a server will raise an error message and will send it to client as shown on 
\ref{fig:error}.

%%%%%%
\begin{figure}[h]
 \centering
 \includegraphics[width=0.3\textwidth]{img/scr7.png}
 % scr5.png: 0x0 pixel, 0dpi, 0.00x0.00 cm, bb=
 \caption{Error Message}
 \label{fig:error}
\end{figure}
You could correct you preceding ordination and resend it again, if everything is right a message box indicating the estimated time for prepare 
the order is shown as on \ref{fig:ready}. The last row on the message box appears only when ordination is ready.

\begin{figure}[h]
 \centering
 \includegraphics[width=0.3\textwidth]{img/scr8.png}
 % scr5.png: 0x0 pixel, 0dpi, 0.00x0.00 cm, bb=
 \caption{Order ready for collect.}
 \label{fig:ready}
\end{figure}
After a successful ordination you could exit from the application clicking on \texttt{menu} and on \texttt{Exit }button.
